package com.dhnsoft.strategy;

import java.io.IOException;
import java.util.Properties;

/**
 * @Description
 * @ClassName PropertyMgr
 * @Author dhn
 * @date 2020.11.11 22:22
 */
public class PropertyMgr {
    private static Properties props;
    static {
        try {
            props=new Properties();
            props.load(PropertyMgr.class.getClassLoader().getResourceAsStream("config"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public static String get(String key){
        return (String) props.get(key);
    }
}
